package com.example.wiki3.Retrofit;

import retrofit2.Retrofit;


import retrofit2.converter.gson.GsonConverterFactory;


public class RetrofitClient {
    /*http://10.0.2.2:8084/*/
    /*47.109.72.75*/
    private static final String BASE_URL = "http://43.138.106.253";
    private static Retrofit retrofit = null;

    public static ApiService getApiService() {
        if (retrofit == null) {
            retrofit = new Retrofit.Builder()
                    .baseUrl(BASE_URL)
                    .addConverterFactory(GsonConverterFactory.create())
                    .build();
        }
        return retrofit.create(ApiService.class);
    }
}